package com.yilouwangye.proxy.exmple_3;

public class AliPay {
    public static void main(String[] args) {
        CardImpl card = new CardImpl();
        ProxyInvocationHandler pInvo = new ProxyInvocationHandler();
        pInvo.setCard(card);
        Card card1 = (Card) pInvo.getProxy();
        card1.pay();
    }
}
